Cyclic cellular automaton